import React, { PropTypes } from 'react';
import TweenOne from 'rc-tween-one';

import {Icon, Switch, Popover, Button, Modal, Form, Input, message, Row, Col, DatePicker, Cascader,Upload,} from 'antd';
const FormItem = Form.Item;

import '../../less/info.less';

const areaData = [{
  value: 'shanghai',
  label: 'Shanghai',
  children: [{
    value: 'shanghaishi',
    label: 'Shanghai',
    children: [{
      value: 'pudongxinqu',
      label: 'Pudong New District',
    }],
  }],
}];

class OtherInfo extends React.Component {
  static contextTypes = {

  };

  static defaultProps = {

  };

  constructor(props){
    super(props);
    this.state = {

    }
  }

  componentDidMount(){

  }

  handleUpload(){

  }

  render() {
    const { getFieldProps } = this.props.form;
    return (
      <div className="formContainer" form={this.props.form}>
        <div className="fromHead">
          <span className="title">编辑信息</span>
          <span className="option">
            <span>保存</span>
            <span>关闭</span>
          </span>
        </div>
        <Form horizontal className="ant-advanced-search-formT">
          <Row gutter={16}>
            <Col sm={12}>
              <FormItem
                label="地税登记号"
                labelCol={{ span: 10 }}
                wrapperCol={{ span: 14 }}
              >
                <Input placeholder="请输入地税登记号" size="default" />
              </FormItem>
              <FormItem
                label="办公地性质"
                labelCol={{ span: 10 }}
                wrapperCol={{ span: 14 }}
              >
                <Input placeholder="请输入办公地性质" size="default" />
              </FormItem>
              <FormItem
                label="环保认证"
                labelCol={{ span: 10 }}
                wrapperCol={{ span: 14 }}
              >
                <Cascader options={areaData} />
              </FormItem>
              <FormItem
                label="流动资金"
                labelCol={{ span: 10 }}
                wrapperCol={{ span: 14 }}
              >
                <Input placeholder="请输入岗位" size="default" />
              </FormItem>
              <FormItem
                label="固定资产"
                labelCol={{ span: 10 }}
                wrapperCol={{ span: 14 }}
              >
                <Input placeholder="请输入岗位" size="default" />
              </FormItem>
              <FormItem
                label="管理人员数量"
                labelCol={{ span: 10 }}
                wrapperCol={{ span: 14 }}
              >
                <Input placeholder="工人数量" size="default" />
              </FormItem>
              <FormItem
                label="工人数量"
                labelCol={{ span: 10 }}
                wrapperCol={{ span: 14 }}
              >
                <Input placeholder="请输入婚姻状况" size="default" />
              </FormItem>
              <FormItem
                label="工人传真"
                labelCol={{ span: 10 }}
                wrapperCol={{ span: 14 }}
              >
                <Input placeholder="请输入婚姻状况" size="default" />
              </FormItem>
            </Col>
            <Col sm={12}>
              <FormItem
                label="国税登记号"
                labelCol={{ span: 10 }}
                wrapperCol={{ span: 14 }}
              >
                <Input placeholder="请输入民族信息" size="default" />
              </FormItem>
              <FormItem
                label="3C认证"
                labelCol={{ span: 10 }}
                wrapperCol={{ span: 14 }}
              >
                <Input placeholder="请输入身份证号码" size="default" />
              </FormItem>
              <FormItem
                label="ISO认证"
                labelCol={{ span: 10 }}
                wrapperCol={{ span: 14 }}
              >
                <Input placeholder="请输入目前居住地址" size="default" />
              </FormItem>
              <FormItem
                label="注册资本"
                labelCol={{ span: 10 }}
                wrapperCol={{ span: 14 }}
              >
                <DatePicker size="default" />
              </FormItem>
              <FormItem
                label="营业执照号"
                labelCol={{ span: 10 }}
                wrapperCol={{ span: 14 }}
              >
                <Input placeholder="请输入单位号码" size="default" />
              </FormItem>
              <FormItem
                label="员工数量"
                labelCol={{ span: 10 }}
                wrapperCol={{ span: 14 }}
              >
                <Input placeholder="请输入单位邮箱" size="default" />
              </FormItem>
              <FormItem
                label="技术人员数量"
                labelCol={{ span: 10 }}
                wrapperCol={{ span: 14 }}
              >
                <Input placeholder="请输入学历" size="default" />
              </FormItem>
              <FormItem
                label="工厂电话"
                labelCol={{ span: 10 }}
                wrapperCol={{ span: 14 }}
              >
                <Input placeholder="请输入毕业学校" size="default" />
              </FormItem>
            </Col>
          </Row>
          <Row>
              <Col span={24}>
                <FormItem
                  id="control-textarea"
                  label="工厂地址"
                  labelCol={{ span: 4 }}
                  wrapperCol={{ span: 20 }}
                >
                  <Input placeholder="请输入培训经历" type="textarea" id="control-textarea" rows="3" />
                </FormItem>
                <FormItem
                  id="control-textarea"
                  label="公司主页"
                  labelCol={{ span: 4 }}
                  wrapperCol={{ span: 20 }}
                >
                  <Input placeholder="请输入培训技术职称" type="textarea" id="control-textarea" rows="3" />
                </FormItem>
                <FormItem
                  id="control-textarea"
                  label="供应品名"
                  labelCol={{ span: 4 }}
                  wrapperCol={{ span: 20 }}
                >
                  <Input placeholder="请输入培训经历" type="textarea" id="control-textarea" rows="3" />
                </FormItem>
              </Col>
          </Row>
        </Form>
      </div>
    )
  }
}

OtherInfo = Form.create()(OtherInfo);

export default OtherInfo;
